import pandas as pd


def game_analysis(activity: pd.DataFrame) -> pd.DataFrame:
    return activity.groupby(by='player_id')['event_date'].min().reset_index().rename(columns={'event_date': 'first_login'})[['player_id', 'first_login']]
